<?php
// No direct access
defined('_JEXEC') or die('Restricted access');

//JHtml::addIncludePath(JPATH_COMPONENT.DS.'helpers'.DS.'html');
require_once JPATH_COMPONENT.'/helpers/html/ajaxwhois.php';

JHtmlAjaxWhois::tipStyle();
JHTML::_('behavior.tooltip');
JHTML::_('behavior.formvalidation');
?>
<script type="text/javascript">
<!--
	function submitbutton(task) {
		if (task == 'config.cancel' || document.formvalidator.isValid(document.id('config-form'))) {
			submitform(task);
		} else {
			alert('<?php echo $this->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED'));?>');
		}
	}
// -->
</script>

<form action="<?php echo JRoute::_('index.php?option=com_ajaxwhois'); ?>" method="post" name="adminForm" id="config-form" class="form-validate">
    <div class="width-60 fltlft">
        <fieldset class="adminform">
            <legend><?php echo JText::_('COM_AJAXWHOIS_CONFIG_GENERAL'); ?></legend>
			<ul class="adminformlist">
				<li><?php echo $this->form->getLabel('title'); ?>
				<?php echo $this->form->getInput('title'); ?></li>

				<li><?php echo $this->form->getLabel('language'); ?>
				<?php echo $this->form->getInput('language'); ?></li>

				<li><?php echo $this->form->getLabel('loadMoo'); ?>
				<?php echo $this->form->getInput('loadMoo'); ?></li>

				<li><?php echo $this->form->getLabel('idn'); ?>
				<?php echo $this->form->getInput('idn'); ?></li>

				<li><?php echo $this->form->getLabel('storeDomains'); ?>
				<?php echo $this->form->getInput('storeDomains'); ?></li>
                
				<li><?php echo $this->form->getLabel('awTemplate'); ?>
				<?php echo $this->form->getInput('awTemplate'); ?></li>
                
				<li><?php echo $this->form->getLabel('whoisWin'); ?>
				<?php echo $this->form->getInput('whoisWin'); ?></li>
                
				<li><?php echo $this->form->getLabel('lightBox'); ?>
				<?php echo $this->form->getInput('lightBox'); ?></li>
                
				<li><?php echo $this->form->getLabel('whoisWidth'); ?>
				<?php echo $this->form->getInput('whoisWidth'); ?></li>
                
				<li><?php echo $this->form->getLabel('whoisHeight'); ?>
				<?php echo $this->form->getInput('whoisHeight'); ?></li>
			</ul>
        </fieldset>
    </div>
    
	<div class="width-40 fltrt">
		<?php echo JHtml::_('sliders.start','ajaxwhois-sliders-'.$this->item->id, array('useCookie'=>1)); ?>

		<?php echo JHtml::_('sliders.panel',JText::_('COM_AJAXWHOIS_FIELDSET_DROPDOWN'), 'dropdown-details'); ?>

		<fieldset class="panelform">
			<ul class="adminformlist">
				<li><?php echo $this->form->getLabel('dropdownWidth'); ?>
				<?php echo $this->form->getInput('dropdownWidth'); ?></li>

				<li><?php echo $this->form->getLabel('useImages'); ?>
				<?php echo $this->form->getInput('useImages'); ?></li>

				<li><?php echo $this->form->getLabel('imageSize'); ?>
				<?php echo $this->form->getInput('imageSize'); ?></li>

				<li><?php echo $this->form->getLabel('fixDD'); ?>
				<?php echo $this->form->getInput('fixDD'); ?></li>

				<li><?php echo $this->form->getLabel('DDleftPos'); ?>
				<?php echo $this->form->getInput('DDleftPos'); ?></li>

				<li><?php echo $this->form->getLabel('DDtopPos'); ?>
				<?php echo $this->form->getInput('DDtopPos'); ?></li>

				<li><?php echo $this->form->getLabel('leftOffset'); ?>
				<?php echo $this->form->getInput('leftOffset'); ?></li>

				<li><?php echo $this->form->getLabel('topOffset'); ?>
				<?php echo $this->form->getInput('topOffset'); ?></li>
			</ul>
		</fieldset>
        
		<?php echo JHtml::_('sliders.panel',JText::_('COM_AJAXWHOIS_FIELDET_DOMAINPART'), 'domainpart-details'); ?>
        
		<fieldset class="panelform">
			<ul class="adminformlist">
				<li><?php echo $this->form->getLabel('domainPartWidth'); ?>
				<?php echo $this->form->getInput('domainPartWidth'); ?></li>

				<li><?php echo $this->form->getLabel('textBoxWidth'); ?>
				<?php echo $this->form->getInput('textBoxWidth'); ?></li>

				<li><?php echo $this->form->getLabel('titleText'); ?>
				<?php echo $this->form->getInput('titleText'); ?></li>

				<li><?php echo $this->form->getLabel('titleTag'); ?>
				<?php echo $this->form->getInput('titleTag'); ?></li>

				<li><?php echo $this->form->getLabel('titleClass'); ?>
				<?php echo $this->form->getInput('titleClass'); ?></li>

				<li><?php echo $this->form->getLabel('domainBoxText'); ?>
				<?php echo $this->form->getInput('domainBoxText'); ?></li>

				<li><?php echo $this->form->getLabel('useBoxBackground'); ?>
				<?php echo $this->form->getInput('useBoxBackground'); ?></li>

				<li><?php echo $this->form->getLabel('buttonPosition'); ?>
				<?php echo $this->form->getInput('buttonPosition'); ?></li>

				<li><?php echo $this->form->getLabel('buttonColor'); ?>
				<?php echo $this->form->getInput('buttonColor'); ?></li>
			</ul>
		</fieldset>
        
		<?php echo JHtml::_('sliders.panel',JText::_('COM_AJAXWHOIS_FIELDET_EXTNPART'), 'extnpart-details'); ?>
        
		<fieldset class="panelform">
			<ul class="adminformlist">
				<li><?php echo $this->form->getLabel('extsWidth'); ?>
				<?php echo $this->form->getInput('extsWidth'); ?></li>

				<li><?php echo $this->form->getLabel('showDot'); ?>
				<?php echo $this->form->getInput('showDot'); ?></li>

				<li><?php echo $this->form->getLabel('useCheckBoxImages'); ?>
				<?php echo $this->form->getInput('useCheckBoxImages'); ?></li>

				<li><?php echo $this->form->getLabel('checkBoxColor'); ?>
				<?php echo $this->form->getInput('checkBoxColor'); ?></li>

				<li><?php echo $this->form->getLabel('colorChecked'); ?>
				<?php echo $this->form->getInput('colorChecked'); ?></li>

				<li><?php echo $this->form->getLabel('colorUnChecked'); ?>
				<?php echo $this->form->getInput('colorUnChecked'); ?></li>

				<li><?php echo $this->form->getLabel('extText'); ?>
				<?php echo $this->form->getInput('extText'); ?></li>

				<li><?php echo $this->form->getLabel('extTag'); ?>
				<?php echo $this->form->getInput('extTag'); ?></li>

				<li><?php echo $this->form->getLabel('extClass'); ?>
				<?php echo $this->form->getInput('extClass'); ?></li>

				<li><?php echo $this->form->getLabel('extWidth'); ?>
				<?php echo $this->form->getInput('extWidth'); ?></li>

				<li><?php echo $this->form->getLabel('showPrice'); ?>
				<?php echo $this->form->getInput('showPrice'); ?></li>

				<li><?php echo $this->form->getLabel('priceWidth'); ?>
				<?php echo $this->form->getInput('priceWidth'); ?></li>
			</ul>
		</fieldset>
        
		<?php echo JHtml::_('sliders.end'); ?>
    </div>

    <input type="hidden" name="task" value="" />
    <?php echo JHtml::_('form.token'); ?>
</form>
